home *** CD-ROM | disk | FTP | other *** search
/ OpenGL Superbible (2nd Edition) / OpenGL SuperBible e2.iso / tools / Mesa-3.0 / SRC / Makefile.BeOS < prev    next >
Encoding:
Makefile  |  1998-07-31  |  2.2 KB  |  85 lines

  1. # Makefile for BeOS
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  3.0
  5. # Copyright (C) 1995-1998  Brian Paul
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id: Makefile.BeOS,v 3.0 1998/07/30 23:42:03 brianp Exp $
  23.  
  24. # $Log: Makefile.BeOS,v $
  25. # Revision 3.0  1998/07/30 23:42:03  brianp
  26. # initial rev
  27. #
  28.  
  29.  
  30. ##### MACROS #####
  31.  
  32. VPATH = RCS
  33.  
  34. INCDIR = ../include
  35. LIBDIR = ../lib
  36.  
  37. CORE_SOURCES = accum.c alpha.c alphabuf.c api1.c api2.c apiext.c attrib.c \
  38.     bitmap.c blend.c clip.c colortab.c context.c copypix.c depth.c \
  39.     dlist.c drawpix.c enable.c eval.c feedback.c fog.c \
  40.     get.c hash.c image.c light.c lines.c logic.c masking.c matrix.c \
  41.     misc.c mmath.c mthreads.c pb.c pixel.c points.c pointers.c polygon.c \
  42.     quads.c rastpos.c readpix.c rect.c scissor.c shade.c span.c \
  43.     stencil.c teximage.c texobj.c texstate.c texture.c triangle.c \
  44.     varray.c winpos.c vb.c vbfill.c vbrender.c vbxform.c xform.c \
  45.     zoom.c
  46.  
  47. # DRIVER_SOURCES definition moved to ../Make-config
  48. DRIVER_SOURCES = OSmesa/osmesa.c
  49.  
  50. OBJECTS = $(CORE_SOURCES:.c=.o) $(DRIVER_SOURCES:.c=.o)
  51.  
  52.  
  53. ##### RULES #####
  54.  
  55. .c.o:
  56.     $(CC) -c -i . -i- -i $(INCDIR) $(CFLAGS) $<
  57.  
  58.  
  59. ##### TARGETS #####
  60.  
  61. default:
  62.     @echo "Specify a target configuration"
  63.  
  64. clean:
  65.     -rm *.o *~
  66.  
  67. targets: $(LIBDIR)/$(GL_LIB)
  68.  
  69. # Make the library
  70. $(LIBDIR)/$(GL_LIB): $(OBJECTS)
  71.     $(MAKELIB) $(GL_LIB) $(MAJOR) $(MINOR) $(OBJECTS)
  72. #    $(RANLIB) $(GL_LIB)
  73.     mv $(GL_LIB)* $(LIBDIR)
  74.  
  75. include ../Make-config
  76.  
  77. include depend
  78.  
  79. #
  80. # Run 'make depend' to update the dependencies if you change what's included
  81. # by any source file.
  82. #
  83. dep: $(CORE_SOURCES) $(DRIVER_SOURCES)
  84.     makedepend -fdepend.BeOS -Y -I../include $(SOURCES)
  85.